package com.wangdao.mall.dao;

import com.wangdao.mall.model.*;

import java.util.List;

/**
 * @Author:HaiyangTian
 * @Description:
 * @Date: Created in 18:54 2020/5/3
 * @Modified By:
 */
public interface OrderDao {

    Integer getTotal(OrderRequestParam param);

    List<Order> ordersByPage(OrderRequestParam param);

    Order getOrder(String id);

    List<OrderSpec> getSpecList(Integer goodsDetailId);

    int changeOrder(OrderUpdate update);

    int deleteOrder(String id);

    int addOrder(Cart cart);

    List<Order> getOrderByState(String token);

    Integer getGoodsId(Integer goodsDetailId);

    OrderGoods getGoods(Integer goodsId);

    Boolean getHasComment(String state);

    SpecId getSpec(Integer goodsDetailId);

    void settleAccounts(CartList cartList);

    int confirmReceive(String id);

    int pay(String id);
}
